import api from './api'


// 查询《光伏》报警
const reqPVAlarm = (data) => {
	return api.post('/alarminfo/page', data)
}

//查询《光伏》告警详情
const reqPVAlarmDetail = (id) => {
	return api.get(`/alarminfo/${id}`)
}

// 查询《风机》报警
const reqWindAlarm = (data) => {
	return api.post('/blower/alarm/page', data)
}

// 查询《充电桩》报警
const reqChargeAlarm = (data) => {
	return api.post('/alarm/page', data)
}

// 查询《传统能耗》报警
const reqTraditionAlarm = (data) => {
	return api.post('/tradition/alarminfo/page', data)
}



// 查询《储能》报警
const reqStoredAlarm = (data) => {
	return api.post('/stored/alarm/page', data)
}


//储能告警详情信息
const reqStorageAlarmDetail = (id) => {
	return api.get(`/stored/alarm/details/${id}`)
}

//传统能耗告警详情信息
const reqTraditionAlarmDetail = (id) => {
	return api.get(`/tradition/alarminfo/${id}`)
}
// 查询《风机》报警详情
const reqWindAlarmDetail = (id) => {
	return api.get(`/blower/alarm/details/${id}`)
}


export {
	reqPVAlarm,
	reqWindAlarm,
	reqChargeAlarm,
	reqTraditionAlarm,
	reqStoredAlarm,
	reqPVAlarmDetail,
	reqWindAlarmDetail,
	reqStorageAlarmDetail,
	reqTraditionAlarmDetail
}